package com.datasync.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.datasync.common.annotation.Excel;
import com.datasync.common.core.domain.BaseEntity;

/**
 * 同步失败日志记录对象 s_error_log
 * 
 * @author ruoyi
 * @date 2023-05-05
 */
public class SErrorLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键，任务序号 */
    private Long id;

    /** 任务ID */
    @Excel(name = "任务ID")
    private Long configId;

    /** 同步类型 */
    @Excel(name = "同步类型")
    private String syncType;


    /** 索引名称 */
    @Excel(name = "索引名称")
    private String tableName;

    /** 主键名称 */
    @Excel(name = "主键名称")
    private String pKey;

    /** 主键值 */
    @Excel(name = "主键值")
    private String pKeyData;

    /** 同步数据 */
    private String syncData;

    /** 错误信息 */
    @Excel(name = "错误信息")
    private String errorMsg;

    /** 状态 */
    @Excel(name = "状态")
    private Integer status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setConfigId(Long configId) 
    {
        this.configId = configId;
    }

    public Long getConfigId() 
    {
        return configId;
    }
    public void setSyncType(String syncType) 
    {
        this.syncType = syncType;
    }

    public String getSyncType() 
    {
        return syncType;
    }
    public void setSyncData(String syncData) 
    {
        this.syncData = syncData;
    }

    public String getSyncData() 
    {
        return syncData;
    }
    public void setErrorMsg(String errorMsg) 
    {
        this.errorMsg = errorMsg;
    }

    public String getErrorMsg() 
    {
        return errorMsg;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getpKey() {
        return pKey;
    }

    public void setpKey(String pKey) {
        this.pKey = pKey;
    }

    public String getpKeyData() {
        return pKeyData;
    }

    public void setpKeyData(String pKeyData) {
        this.pKeyData = pKeyData;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("configId", getConfigId())
            .append("syncType", getSyncType())
            .append("syncData", getSyncData())
            .append("errorMsg", getErrorMsg())
            .append("createTime", getCreateTime())
            .append("status", getStatus())
            .toString();
    }
}
